<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let fn = function () {
      return new Promise((resolve, reject) => {throw new Error('123')})
    }
    // try {
    //   setTimeout(() => {
    //       nota
    //   }, 2000);
    // } catch (error) {
    //   console.log(error, 'error');
    // }

    try {
      setTimeout(() => {
          try {
            nota
          } catch (error) {
            console.log(error, 'error26');
          }
      }, 2000);
    } catch (error) {
      console.log(error, 'error');
    }
  </script>
</body>
</html>